import { CODE_API, SESSION_API } from '../constant/api'
import request from '../utils/request'

export const getCodeData = (phone) => request({
    url: CODE_API.replace('{phone}', phone),
})

export const loginSession = (info) => request({
    url: SESSION_API,
    method:'POST',
    data:info
})

